package com.zjuee.base.model.common.basic;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zjuee.base.model.Base;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 字典信息
 *
 * @author wu liang
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_config_dictionary")
public class Dict extends Base {

    //字典代码
    private String configCode;

    //字典名称
    private String configName;

    //字典类型 用来定义此配置的关键性，如：1系统内置 2用户添加
    private Integer configType;

    //排序字段
    private Integer sort;

    //层级代码
    @JSONField(serialize = false)
    private String levelCode;

    @JSONField(serialize = false)
    private Date gmtCreate;

    @JSONField(serialize = false)
    private Date gmtModify;

    @JSONField(serialize = false)
    private Long createId;

    @JSONField(serialize = false)
    private Long modifyId;

}
